TryAdd Method

Task Parallel System.Threading

Overload List

  NameDescription
TryAdd(T)
Attempts to add the specified item to the BlockingCollection<(Of <(T>)>).
TryAdd(T, Int32)
Attempts to add the specified item to the BlockingCollection<(Of <(T>)>).
TryAdd(T, TimeSpan)
Attempts to add the specified item to the BlockingCollection<(Of <(T>)>).
TryAdd(T, Int32, CancellationToken)
Attempts to add the specified item to the BlockingCollection<(Of <(T>)>). A OperationCanceledException is thrown if the CancellationToken is canceled.

See Also